const { Message } = require('../../model/message');
module.exports = async (req,res)=>{
  await Message.create({
    uid: req.body.uid,
    content: req.body.content,
    time: Date.now(),
    state: 0
  });
  res.send({
    message: '留言成功,请等待管理员的回复！！！'
  });
}